﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SelectSupplier.ascx.cs" Inherits="CanDoo.Oil.WebApp.UserControls.SelectSupplier" %>
<f:Panel ID="Panel7" runat="server" BodyPadding="5px" Width="650px" Height="300px" Hidden="true"
    ShowBorder="true" ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
    <Items>
        <f:Form ID="Form2" runat="server" ShowHeader="false"
            ShowBorder="false">
            <Rows>
                <f:FormRow ID="FormRowSearch" runat="server">
                    <Items>
                        <f:TwinTriggerBox ID="SearchKey" runat="server" ShowLabel="false" EmptyText="在名称中搜索"
                            Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="search_Key_Trigger2Click"
                            OnTrigger1Click="search_Key_Trigger1Click">
                        </f:TwinTriggerBox>
                    </Items>
                </f:FormRow>
            </Rows>
        </f:Form>
        <f:Grid ID="SelectSupplierControl_GridList" BoxFlex="1"
            DataIDField="Id" DataTextField="Name" KeepCurrentSelection="true"
            PageSize="10" ShowBorder="true" ShowHeader="false"
            AllowPaging="false" runat="server" EnableCheckBoxSelect="True"
            DataKeyNames="Id,Name" IsDatabasePaging="true" OnPageIndexChange="GridList_PageIndexChange"
            AllowSorting="false" SortField="Code" SortDirection="ASC"
            OnSort="GridList_Sort">
                        <PageItems>
                <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                </f:ToolbarSeparator>
                <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                </f:ToolbarText>
                <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
                    runat="server">
                    <f:ListItem Text="10" Value="10" />
                    <f:ListItem Text="20" Value="20" />
                    <f:ListItem Text="50" Value="50" />
                    <f:ListItem Text="100" Value="100" />
                </f:DropDownList>
            </PageItems>
            <Columns>
                <f:RowNumberField />
                        <f:BoundField ColumnID="Code" DataField="Code" HeaderText="供应商编号" Width="150px" />
                        <f:BoundField ColumnID="ShortName" DataField="ShortName" HeaderText="供应商简称" Width="150px" />
                        <f:BoundField ColumnID="Name" DataField="Name" HeaderText="供应商全称" Width="150px" />
                        <f:BoundField ColumnID="SupplierType" DataField="SupplierType.Name" HeaderText="供应商类别" Width="150px" />
                        <f:BoundField ColumnID="Tel" DataField="Tel" HeaderText="电话" Width="150px" />
                        <f:BoundField ColumnID="Mobile" DataField="Mobile" HeaderText="手机" Width="150px" />
                        <f:BoundField ColumnID="QQ" DataField="QQ" HeaderText="QQ" Width="150px" />
                        <f:BoundField ColumnID="WebChat" DataField="WebChat" HeaderText="微信" Width="150px" />
                        <f:BoundField ColumnID="WebSite" DataField="WebSite" HeaderText="网站" Width="150px" />
                        <f:BoundField ColumnID="Fax" DataField="Fax" HeaderText="传真" Width="150px" />
                        <f:BoundField ColumnID="LegalPerson" DataField="LegalPerson" HeaderText="法人代表" Width="150px" />
                        <f:BoundField ColumnID="Warehouse" DataField="Warehouse.Name" HeaderText="默认收货仓库" Width="150px" />
                        <f:BoundField ColumnID="RegMoney" DataField="RegMoney" HeaderText="注册资金" Width="150px" />
                        <f:BoundField ColumnID="Address" DataField="Address" HeaderText="详细地址" Width="150px" />
                        <f:BoundField ColumnID="License" DataField="License" HeaderText="执照号" Width="150px" />
                        <f:BoundField ColumnID="Enable" DataField="Enable" HeaderText="启用" Width="150px" />
                        <f:BoundField ColumnID="AccountPeriod" DataField="AccountPeriod" HeaderText="账期" Width="150px" />
                        <f:BoundField ColumnID="Remark" DataField="Remark" HeaderText="备注"  ExpandUnusedSpace="true" />
            </Columns>
        </f:Grid>
    </Items>
</f:Panel>
